<? 
$section='Display'; 
?>
 <? 
include_once('inc/functions.php');
require_once('inc/global.php');
require_once('inc/userdata.php');
$userresults = GetUsers ();
?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>User Management</title>
<link href="stylesheet.css" rel="stylesheet" type="text/css">
</head>
<body>

<? 
	include('inc/header.php')
?>
<div class="monkey">
<? print_r($userresults) ?>
<h2>List of People</h2>
<table cellpadding="5px;" bordercolor="#4096EE" bgcolor="#C3D9FF" cellspacing="0px;" border="0px" align="center" style="border: 1px solid; color: #3F4C6B;">
<tr>
<th>Actions</th>
<th>&nbsp;</th>
<th bgcolor="#A6C8FF">First Name</th>
<th>Last Name</th>
<? while ($rss = $userresults->fetch_assoc()){ ?>
<tr style="border: 1px solid; border-color:#4096EE;">
<td>
<a target="_top" href="details.php?id=<?=$rss['id']?>">View Details</a>
</td>
<td>
<a target="_top" href="edit.php?id=<?=$rss['id']?>">Edit</a>
</td>
<td bgcolor="#A6C8FF"><?=$rss['FirstName']?></td>
<td><?=$rss['LastName']?></td>
</tr>
<? } ?>
</table><br>

</div>
<? 
	include('inc/nav.php');
?>
</body>
</html>